/* Frontend CSS - assets/css/frontend.css */

.lgt-tracker {
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin-bottom: 30px;
    color: #333;
}

.lgt-header {
    background-color: #4285f4;
    color: white;
    padding: 15px 20px;
    border-radius: 5px 5px 0 0;
}

.lgt-header h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 500;
}

.lgt-quick-scan {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lgt-top-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.lgt-control-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.lgt-control-group label {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.lgt-business-name,
.lgt-search-query,
.lgt-business-address,
.lgt-grid-size,
.lgt-radius {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 14px;
}

.lgt-unit-group {
    min-width: 100px;
}

.lgt-unit-toggle {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.lgt-unit-button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background-color: #e0e0e0;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lgt-unit-button.active {
    background-color: #fff;
    color: #4285f4;
    font-weight: bold;
}

.lgt-button-group {
    display: flex;
    align-items: center;
}

.lgt-run-scan {
    background-color: #fbbc05;
    color: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.lgt-run-scan:hover {
    background-color: #f9a825;
}

.lgt-address-container {
    width: 100%;
}

.lgt-business-address {
    width: 100%;
}

.lgt-results {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: #f9f9f9;
    padding: 20px;
}

.lgt-results-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.lgt-add-to-monitoring,
.lgt-export-results {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lgt-add-to-monitoring:hover,
.lgt-export-results:hover {
    background-color: #f5f5f5;
}

.lgt-results-map {
    width: 100%;
    height: 500px;
    background-color: #e5e3df;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
}

.lgt-quote {
    background-color: #fff;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.lgt-quote p {
    font-size: 16px;
    margin: 0 0 10px 0;
}

.lgt-small-text {
    font-size: 14px;
    color: #666;
}

.lgt-highlight {
    color: #4285f4;
    font-weight: bold;
}

.lgt-grid-cell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lgt-grid-cell:hover {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 2;
}

.lgt-position-1 {
    background-color: #4caf50; /* Verde */
}

.lgt-position-2 {
    background-color: #8bc34a; /* Verde claro */
}

.lgt-position-3 {
    background-color: #cddc39; /* Verde limão */
}

.lgt-position-4 {
    background-color: #ffeb3b; /* Amarelo */
}

.lgt-position-5 {
    background-color: #ffc107; /* Âmbar */
}

.lgt-position-6,
.lgt-position-7,
.lgt-position-8,
.lgt-position-9,
.lgt-position-10 {
    background-color: #ff9800; /* Laranja */
}

.lgt-position-none {
    background-color: #e0e0e0; /* Cinza */
    color: #666;
}

.lgt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.lgt-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4285f4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: lgt-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes lgt-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.lgt-error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.lgt-results-details {
    background-color: white;
    border-radius: 4px;
    padding: 15px;
}

/* Admin CSS - assets/css/admin.css */

.lgt-dashboard-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.lgt-dashboard-box {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    width: calc(50% - 10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lgt-dashboard-box h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.lgt-shortcode-info {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lgt-shortcode-info h3 {
    margin-top: 0;
}

.lgt-shortcode-info code {
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 3px;
}

.lgt-quick-scan {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lgt-form-group {
    margin-bottom: 15px;
}

.lgt-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.lgt-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lgt-form-actions {
    margin-top: 20px;
}

.lgt-scan-results {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lgt-results-map {
    width: 100%;
    height: 500px;
    background-color: #e5e3df;
    border-radius: 4px;
    margin-bottom: 20px;
}

.lgt-results-actions {
    margin-bottom: 15px;
}

.lgt-history-list,
.lgt-monitoring-list {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lgt-pagination {
    margin-top: 15px;
}

#lgt-api-key-test-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}

#lgt-api-key-test-result.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

#lgt-api-key-test-result.error {
    background-color: #ffebee;
    color: #c62828;
}

@media screen and (max-width: 782px) {
    .lgt-dashboard-box {
        width: 100%;
    }
    
    .lgt-form-row {
        flex-direction: column;
        gap: 10px;
    }
}
